<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE html>
<html>
<head>
<title></title>   
<s:include value="../common/source.jsp"></s:include>
<title>学科管理系统</title>			
</head>  

  
<body>
 
<div class="body">
<div class="content ui-sortable">
          <div class="list">
         	教师信息
          	 </div>
          	 </div>
          	 <br/> 
          	  <br/> 
          	   <hr style="background-color:#cfe1f9;height:1px;"/>
	<form class="sui-form form-horizontal sui-validate" 
			action="teacher/teaInfo.action" 
			method="post">
		<table class="sui-table table-vzebra "  
				>
		<tbody>
		<tr>
			<td style="width:15%">教师姓名</td>
			<td style="width:35%">   
				<input type="text"  
						class="input-large" 
						value="<s:property value="teacher.name"/>" 
						name="teacher.name" 
						data-rules="required"></td>                       
			<td style="width:15%" 
				rowspan="14">专家类别和授予日期<br>
				(增加时必须填写时间)
				</td>
			<td style="width:35%"  rowspan="14" >
	<div class="control-group" style="line-height:21px;">
    
		<s:iterator value="experter">     
			<% int m = 0; %>
			<s:iterator value="midtable">
				<s:if test="expId==meid">
				<% m = 1; %>         
				<input type="checkbox" class="checkbox-pretty"  checked  name="experid" value="<s:property value="expId"/>"/>
						<span>
							<s:property value="expert"/>
						</span>		
				<input type="text" style="width:90px;height:12px;" data-toggle="datepicker" name="medatetime" value="<s:date name="medate" format="yyyy-MM-dd"/>">
				<br/>
				</s:if>     
			</s:iterator> 
			<% request.setAttribute("m", m); %> 
			<s:if test="#request.m==0">
				<input type="checkbox" name="experid" " value="<s:property value="expId"/>"/>
						<span style="font-size:14px;">
							<s:property value="expert"/>
						</span>
			<input type="text" style="width:90px;height:12px;" data-toggle="datepicker" name="medatetime" value="<s:date name="medate" format="yyyy-MM-dd"/>">
		   <br/>
			</s:if>
		</s:iterator> 	
	</div>
	
			</td>
		</tr>
		<tr>
			<td>教师工号</td>
			<td>  
				<input class="input-large"  style="float:left"	type="text" value="<s:property value="teacher.user"/>" data-rules="required"> (不能修改)
			</td>
		</tr>
		<tr>
                        <td>所属学科</td>
                        <td><div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="teacher.subject"/>" name="teacher.subject" type="hidden"><i class="caret" ></i><span>
                  <s:if test="teacher.subject==1">控制科学与工程</s:if>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>控制科学与工程</a></li>
                </ul>
              </span>
            </span>
          </div> </td>
                      </tr>
		<tr>
                        <td>所属方向</td>
                        <td><div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="teacher.direction"/>" name="teacher.direction" type="hidden"><i class="caret" ></i><span>
                  <s:if test="teacher.direction==0">控制理论与控制工程</s:if>
                  <s:elseif test="teacher.direction==1">机器人系统与智能装备</s:elseif>
                  <s:elseif test="teacher.direction==2">模式识别与智能系统</s:elseif>
                  <s:elseif test="teacher.direction==3">综合自动化与智能交通</s:elseif> 
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>控制理论与控制工程</a></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>机器人系统与智能装备</a></li>
                  <li role="presentation" ><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>模式识别与智能系统</a></li>
                   <li role="presentation" ><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=3>综合自动化与智能交通</a></li>
                </ul>
              </span>
            </span>
          </div> </td>
                      </tr>
		<tr>
                        <td>进入学科时间</td>
                        <td> <input type="text" class="input-large" name="teacher.inSubDate" data-toggle="datepicker" data-rules="required" value="<s:date name="teacher.inSubDate"  format="yyyy-MM-dd" />"></td>
                      </tr>        
                    <tr>                  
		<tr>
                        <td>出生年月</td>
                        <td> <input type="text" name="teacher.birthday" class="input-large" data-toggle="datepicker" data-rules="required" value="<s:date name="teacher.birthday"  format="yyyy-MM-dd" />"></td>
                      </tr>   
		<tr>
			<td>邮箱</td>
			<td> 
				<input type="text"  
						class="input-large" 
						value="<s:property value="teacher.mail"/>" 
						name="teacher.mail" data-rules="required"></td>
		</tr>              
		<tr>
			<td>技术职务</td>
			<td>  
			<div class="controls">
				<span class="sui-dropdown dropdown-bordered select">
				<span class="dropdown-inner">
					<a id="drop4" role="button" 
						data-toggle="dropdown" 
						href="#" 
						class="dropdown-toggle">
						<input data-rules="required" 
								value="<s:property value="teacher.duty"/>" 
								name="teacher.duty" type="hidden">
								<i class="caret"></i>
								<span>
									<s:property value="teacher.duty"/>
								</span>
					</a>
				<ul id="menu4" role="menu" aria-labelledby="drop4" 	class="sui-dropdown-menu">
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="教授" 
							name="duty">教授
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="副教授" 
							name="duty">副教授
						</a>
					</li> 
					<li role="presentation" >
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="讲师" 
							name="duty">讲师
						</a>
					</li>
					<li role="presentation" >
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="助教" 
							name="duty">助教
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="高级实验师" 
							name="duty">高级实验师
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="实验师" 
							name="duty">实验师
						</a>
					</li> 
					<li role="presentation" >
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="助理实验师" 
							name="duty">助理实验师
						</a>
					</li>
					<li role="presentation" >
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="实验员" 
							name="duty">实验员
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="高级工程师" 
							name="duty">高级工程师
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="工程师" 
							name="duty">工程师
						</a>
					</li> 
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="助理工程师" 
							name="duty">助理工程师
						</a>
					</li> 
					<li role="presentation" >
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="技术员" 
							name="duty">技术员
						</a>
					</li>
					<li role="presentation" >
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="研究员" 
							name="duty">研究员
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="副研究员" 
							name="duty">副研究员
						</a>
					</li> 
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="助理研究员" 
							name="duty">助理研究员
						</a>
					</li> 
					<li role="presentation" >
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value="研究实习员" 
							name="duty">研究实习员
						</a>
					</li>
				</ul>
				</span>
				</span>
			</div>
			</td>
		</tr>
		<tr>
			<td>学位</td>
			<td>   
			<div class="controls">
				<span class="sui-dropdown dropdown-bordered select">
				<span class="dropdown-inner">
					<a id="drop4" role="button" 
						data-toggle="dropdown" 
						href="#" 
						class="dropdown-toggle">
						<input data-rules="required" 
								value="<s:property 
								value="teacher.degree"/>" 
								name="teacher.degree" 
								type="hidden">
								<i class="caret"></i>
					<span>
					<span>
							<s:if test="teacher.degree==0">博士</s:if>
							<s:elseif test="teacher.degree==1">硕士</s:elseif>
							<s:elseif test="teacher.degree==2">学士</s:elseif>
							<s:elseif test="teacher.degree==3">其他</s:elseif>
							</span>
					</a>
				<ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value=0 
							name="degree">博士
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value=1 
							name="degree">硕士
						</a>
					</li>
					<li role="presentation" 
						class="active">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value=2 
							name="degree">学士
						</a>
					</li>
					<li role="presentation" 
						class="active">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value=3 
							name="degree">其他
						</a>
					</li>
				</ul>
				</span>
				</span>
			</div>
			</td>
			</tr>
		<tr>
			<td>在职状态</td>
			<td> 
			<div class="controls">
				<span class="sui-dropdown dropdown-bordered select">
				<span class="dropdown-inner">
					<a id="drop4" 
						role="button" 
						data-toggle="dropdown" 
						href="#" 
						class="dropdown-toggle">
						<input data-rules="required" 
							value="<s:property 
							value="teacher.online"/>" 
							name="teacher.online" 
							type="hidden">
							<i class="caret"></i>
				<span>
							<s:if test="teacher.online==0">在职</s:if>
							<s:elseif test="teacher.online==1">离职</s:elseif>
							<s:elseif test="teacher.online==2">退休</s:elseif>
				</span>
				<ul id="menu4" 
					role="menu" 
					aria-labelledby="drop4" 
					class="sui-dropdown-menu">
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value=0 
							name="online">在职
						</a>
					</li>
					<li role="presentation">
						<a role="menuitem" 
							tabindex="-1" 
							href="javascript:void(0);" 
							value=1 
							name="online">离职
						</a>
					</li>
					<li role="presentation" 
						class="active">
							<a role="menuitem" 
								tabindex="-1" 
								href="javascript:void(0);" 
								value=2 
								name="online">退休
							</a>
					</li>
				</ul>
				</span>
				</span>
			</div>
			</td>
		</tr>
		<tr>
			<td>进修情况简要说明</td>
			<td>  
				<textarea rows="3" class="tex0" name="teacher.furStud" data-rules="required"><s:property value="teacher.furStud"/>
				</textarea>
			</td>
		</tr>
		<tr>
			<td>最高学历毕业学校</td>
			<td>
				<input class="input-large" 
					type="text" 
					value="<s:property value="teacher.topSchool"/>"  
					name="teacher.topSchool" 
					data-rules="required"> 
			</td>
		</tr>
		<tr>
			<td>最高学历毕业专业</td>
			<td> 
				<input  class="input-large"
					type="text" 
					value="<s:property value="teacher.topMajor"/>" 
					name="teacher.topMajor" 
					data-rules="required"> 
			</td>
		</tr>
		</tbody>
		</table> 
	<div class="control-group button3">
		<label class="control-label v-top"></label>
		<div class="controls">
			<button type="submit" class="sui-btn btn-primary">保存</button>         
		</div>
</div>
</form>
</div>
 <script>
		if("<s:property value="suc"/>"=="success")
		{
			var msg="修改成功！！！！";
			
			alert(msg);
			
		}
		</script>
</body>
</html>
